<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Home\Controller;

/**
 * 前台公共控制器
 * 为防止多分组Controller名称冲突，公共Controller名称统一使用分组名称
 */
class CommonController extends HomeController {

	/**
	 * 单图上传接口
	 * */
	public function uploadImg()
	{
		$file = $_FILES['file'];
		$uid = $_POST['uid'];//用户id
		$type = $_POST['type'] ? $_POST['type'] : 1;//上传图片的类型 1：身份证正面；2：身份证反面；3：营业执照；4：在线课视频提问图片；

		uploadImg($file, $uid, $type);
	}

}
